" Use vim-plug for plugin management
" More details on https://github.com/junegunn/vim-plugin

" Automatically install vim-plug if it's not installed
if empty(glob($HOME.'/.vim/autoload/plug.vim'))
  silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
         \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
endif

" Autocommand that reloads neovim whenever you save the plugins.lua file
augroup plugin_auto_load
  autocmd!
  autocmd BufWritePost plugins.vim source <afile> | PlugInstall --sync
augroup end

" ==== Add plugin here ====
" @syntax like: Plug 'author/plug-repo-name'
call plug#begin()

Plug 'ryanoasis/vim-devicons' " devicons for vim

Plug 'mg979/vim-visual-multi', {'branch': 'master'}

Plug 'dyng/ctrlsf.vim'

Plug 'preservim/nerdtree' " the classic file manager for vim
Plug 'tiagofumo/vim-nerdtree-syntax-highlight' " make nerdtree more colorful
Plug 'Xuyuanp/nerdtree-git-plugin' " git signs for nerdtree

Plug 'godlygeek/tabular', { 'on': 'Tabularize' } " align codes

Plug 'mhinz/vim-signify' " git signs

Plug 'voldikss/vim-floaterm' " a more handy terminal

Plug 'preservim/nerdcommenter' " quick comment

Plug 'sainnhe/everforest'
Plug 'kaicataldo/material.vim', { 'branch': 'main' }
" Plug 'Rogerskelamen/eleline.vim'
Plug 'liuchengxu/eleline.vim'

Plug 'yianwillis/vimcdoc' " Chinese doc

Plug 'neoclide/coc.nvim', {'branch': 'release'} " lsp and completion

" Unmanaged plugin (manually installed and updated)
" Plug '~/my-prototype-plugin'

call plug#end()
